
Feature:

  Background:


  Scenario: brief description of this scenario
    * def dateStringToLong =
    """
      function(s) {
        var SimpleDateFormat = Java.type('java.text.SimpleDateFormat');
        var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        return sdf.parse(s).time; // '.getTime()' would also have worked instead of '.time'
      }
     """
    * string s = "2016-12-24T03:39:21.081+0000"
    * print dateStringToLong(s)
    * assert dateStringToLong("2016-12-24T03:39:21.081+0000") == 1482550761081